package com.gxh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 设备实体
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("machine")
public class Machine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("机械设备名称“规格”")
    private String name;

    @ApiModelProperty("机械设备分类id")
    private Long categoryId;

    @ApiModelProperty("机械设备品牌")
    private String brand;

    @ApiModelProperty("设备使用系统")
    private String machineSystem;

    @ApiModelProperty("设备出厂的年份")
    private Integer year;

    @ApiModelProperty("设备数量")
    private Integer quantity;

    @ApiModelProperty("用户设备价格")
    private BigDecimal customPrice;

    @ApiModelProperty("同行设备价格")
    private BigDecimal peerPrice;

    @ApiModelProperty("设备位置id")
    private Long locationId;

    @ApiModelProperty("描述信息")
    private String description;

    @ApiModelProperty("设备状态")
    private Integer status;
    @ApiModelProperty("设备类型1:仓库现货，2:工厂在位")
    private Integer type;

    @ApiModelProperty("浏览次数")
    private Integer viewCount;

    @ApiModelProperty("是否售出0：未售出，1：已售出")
    private Integer isSold;

    @ApiModelProperty("售出时间")
    private LocalDateTime soldTime;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("创建人")
    private Long createUser;

    @ApiModelProperty("修改人")
    private Long updateUser;
}
